home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_bloodtrail.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
1KB
|
49 lines
# Jedi Knight Cog Script
#
# 00_BLOODTRAIL.COG
#
# Leave a blood trail behind a severed limb
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
flags=0x240
symbols
template blood=+limb_blood local
int dummy local
message created
message pulse
message timer
end
# ========================================================================================
code
created:
SetThingPulse(GetSenderRef(), 0.05); // set 50 msec timer for blood release
SetTimerEx(1.1, GetSenderRef(), 0, 0); // cut it after 1.1 seconds
Return;
# ........................................................................................
pulse:
dummy = CreateThing(blood, GetSenderRef()); // create blood at our current location
Return;
# ........................................................................................
timer:
SetThingPulse(GetSenderId(), 0);
Return;
end